Table 7. Paired Bootstrap test

Main reference:
Wei, M.F., H. Chi, Y.F., Guo, X.W. Li, L.L. Zhao, R.Y. Ma. 2020. Demography of Cacopsylla
   chinensis (Hemiptera: Psyllidae) reared on four cultivars of Pyrus bretschneideri and 
   P. communis (Rosales: Rosaceae) pears with estimations of confidence intervals of
   specific life table statistics. J Econ Entomol 113(5): 2343-2353.

-----------------------------------------------------------------------------------------
The results of paired bootstrap test are presented in following three ways.
   1. Bootstrap t confidence intervals (assuming the results is normally distributed).
   2. Bootstrap percentile confidence intervals (based on the actual sampling results).
   3. P value based on number of bootstrap samples showing significant difference.
Because the t confidence intervals is based on the assumption of normal distribution, 
while the bootstrap percentile confidence interval is based on random sampling, they
are different. Although most biological and ecological data are mostly not normal,
the distribution of bootstrap sample means are generally normal (if B is large).
Therefore, a large number of resampling (B = 100,000) is needed to ensure a stable
estimate. However, 100,000 is still a tiny proportion of exact method. If the bootstrap
results are normally distributed, the t confidence interval is similar to the bootstrap
confidence interval.  Moreover, the results of significance test based on three methods
are consistent. Discrepant results will only be observed in extreme cases.
-----------------------------------------------------------------------------------------

Project: 
Number of treatments = 2 
Bootstrap number (B) = 100000 
Treatment 1 =D:\\...:\\ļ\\ȥѿ2\T_Effect Boot-B4_TPOP.tx
          Variable: TPOP
Treatment 2 =D:\\...:\\ļ\\ck2\ck_Effect Boot-B4_TPOP.tx
          Variable: TPOP
Comparison between 25C-TPOP vs 25C-TPOP
Number of bootstrap resamplings (B)= 100000 
========================================================================
                          25C-TPOP                 25C-TPOP
------------------------------------------------------------------------
Original =               12.8965517241379         12.55 
------------------------------------------------------------------------
Bootstrap mean =         12.8958950235903         12.5497341931946 
Variance =               2.35418537818176E-02     2.93469131743111E-02 
SE =                     0.153433548423471        0.171309407722726 
n                        29                       30 
------------------------------------------------------------------------
Difference 1 = 0.3465517241379 
   Difference 1 is the difference of two original values.
------------------------------------------------------------------------
Difference 2 = 0.346160830395677 
   Difference 2 is the difference of two bootstrap means.
------------------------------------------------------------------------
Difference 3 = 0.346160830395909 
   Difference 3 is the mean of all paired bootstrap differences.
With the increase of B, diff. 2 and 3 will close to diff. 1.
------------------------------------------------------------------------
SE of 100000 differences = 0.22964199207793 
************************************************************************
* Bootstrap t confidence intervals:                                    *
* 95% CI:                Lower                    Upper                *
*                       -0.103929206965119        0.796250867756936    *
* No signif. diff. btw. 25C-TPOP and 25C-TPOP.                         *
* If the CI includes 0, there is no significant difference.            *
------------------------------------------------------------------------
------------------------------------------------------------------------
# Percentile confidence intervals of differences:                      #
# 95% CI:                Lower                    Upper                #
#                       -0.1099567099567          0.7916666666667      #
# No signif. diff. btw. 25C-TPOP and 25C-TPOP.                         #
# If the CI includes 0, there is no significant difference.            #
#----------------------------------------------------------------------#
# Number of insignif. diff. =  13213                                   #
# Number of signif. diff. =  86787                                     #
# P-value (based on bootstrap samples) =  0.13213                      #
------------------------------------------------------------------------
------------------------------------------------------------------------

References:
Smucker, Mark D., James Allan, and Ben Carterette. 2007. A Comparison of
   Statistical Significance Tests for Information Retrieval Evaluation.
   Proceedings of the Sixteenth ACM Conference on Conference on Information
   and Knowledge Management, Lisbon, Portugal.p. 623-632.
HesHesterberg, T., D. S. Moore, S. Monaghan, A. Clipson, and R. Epstein. 
   2005. Bootstrap methods and permutation tests. In D. S. Moore & G. P. 
   McCabe (Eds.), Introduction to the Practice of Statistics (5th ed.). New
   York, US: W. H. Freeman and Company.
Wei, M. F., H. Chi, Y. F. Guo, X. W. Li, L. L. Zhao, and R. Y. Ma. 2020.
   Demography of Cacopsylla chinensis (Hemiptera: Psyllidae) reared on four
   cultivars of Pyrus bretschneideri and P. communis (Rosales: Rosaceae) 
   pears with estimations of confidence intervals of specific life table
   statistics. Journal of Economic Entomology doi: 10.1093/jee/toaa149. 

 Table 8. Differences between treatments and lower CI
     (This CI is based on the bootstrap t confidence interval)
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: Lower CI of difference between means (i,j) based on t]
 
 =====================================
                25C-TPOP   25C-TPOP
 =====================================
 25C-TPOP       ----       0.3462 
 25C-TPOP      -0.1039     ----
 =====================================
 *: Significant at 5% significance level
 The bootstrap t confidence interval might be different from the bootstrap percentile 
 confidence interval. 

 Table 9. Differences between treatments and P-value
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: P-value of the test between (i,j)]
 
 =====================================
                25C-TPOP   25C-TPOP
 =====================================
 25C-TPOP       ----       0.3462 
 25C-TPOP       0.1321     ----
 =====================================
 *: Significant at 5% significance level

 Table 10. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: The difference between means (i,j)]
 
 =====================================
                25C-TPOP   25C-TPOP
 =====================================
 25C-TPOP       ----       0.1321 
 25C-TPOP       0.3462     ----
 =====================================
 *: Significant at 5% significance level

 Table 11. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: P-value of the test between (j,i)]
 
 =====================================
                25C-TPOP   25C-TPOP
 =====================================
 25C-TPOP       ------     0.1321 
 25C-TPOP       0.1321     ------
 =====================================
 *: Significant at 5% significance level

 Table 12. Preliminary table of differences between treatments.
 You can use the following table to mark the differences between treatments.
 Only the differences between the first few treatments are marked for you.
 Note well! If this table is not completed, you have to complete the rest "_" 
 yourself. Attention! Not every "_" needs to be filled with a letter. 
 This is a good practice of "critical thinking". "Thinking is the
 most important thing in science".
 ===========================================================================
 Treatment     Mean                     SE                      Difference
 ---------------------------------------------------------------------------
 25C-TPOP      12.8965517241379         0.153433548423471        a_
 25C-TPOP      12.55                    0.171309407722726        a_
 ---------------------------------------------------------------------------
